﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lso_2u_Web应用开发.Models.Database
{
    [Table("User")]
    [Index(nameof(PhoneNumber), Name = "User_UN", IsUnique = true)]
    public partial class User
    {
        [Key]
        [Column("id")]
        public int Id { get; set; }
        [Required]
        [Column("name")]
        [StringLength(256)]
        public string Name { get; set; }
        [Required]
        [Column("phone_number")]
        [StringLength(32)]
        public string PhoneNumber { get; set; }
        [Required]
        [Column("password")]
        [StringLength(64)]
        public string Password { get; set; }
        [Column("secret_key")]
        [StringLength(64)]
        public string SecretKey { get; set; }
        [Required]
        [Column("actor")]
        [StringLength(32)]
        public string Actor { get; set; }
    }
}
